home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: bdp0868@aol.com (BDP0868)
- Newsgroups: comp.lang.c++
- Subject: Re: Default Constructors
- Date: 13 Apr 1996 01:26:39 -0400
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4knduf$5ct@newsbf02.news.aol.com>
- References: <316F2B88.5FC4@psych.stanford.edu>
- Reply-To: bdp0868@aol.com (BDP0868)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- Hi Nick-
- The problem here is that your constructor is private (the default) which
- means it is not accessible to your "Object" class. You will almost always
- want your constructors to be public. If you change class position to
-
- class Position {
- public:
- Position(){x=y=z=0;}
- private:
- blah, blah, blah
- }
-
- you will se much better results!
-
- Good Luck.
-
- Brad Peterson
- bdp0868@aol.com
-